<?php

function get_database_connection() {
  $SERVER = "localhost";
  $USERNAME = "root";
  $PASSWORD = "";
  $DATABASE = "scormeditor";

  $connection = mysql_connect($SERVER, $USERNAME, $PASSWORD) or die("Can´t connect to mysql");
  mysql_select_db($DATABASE) or die("Cant find database on mysql");
  
  return $connection;
}

?>
